<template>
  <view class="page container">
    <view class="mb-28" v-for="item in areaList" :key="item.id">
      <responsible-card :list="item.data || []" :title="item.name" />
    </view>
  </view>
</template>
<script>
import ResponsibleCard from "../components/ResponsibleCard.vue";
import { manageAreaApi } from "@/services/my";
export default {
  components: {
    ResponsibleCard,
  },
  data() {
    return {
      areaList: [],
    };
  },
  onLoad() {
    this.getAreaList();
  },
  methods: {
    getAreaList() {
      manageAreaApi().then((res) => {
        this.areaList = res.data?.manage_info?.city_data || [];
        console.log(this.areaList);

      });
    },
  },
};
</script>
<style lang="scss" scoped>
.page {
  background-color: #f7f8fa;
  padding-top: 28rpx;
}
</style>
